<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<META name="keywords" content="$!config.keywords" />
<META name="description" content="$!config.description" />
<title>论坛管理 - 栏目管理</title>
<link rel="stylesheet" href="skin/gold/css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="skin/gold/css/style.css" type="text/css" media="screen" />
<script type="text/javascript" src="res/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="res/js/common.js"></script>
<script type="text/javascript" src="skin/gold/js/html5.js"></script>
<script type="text/javascript" src="skin/gold/js/ikeke.js"></script>
<!--[if lte IE 6]>
<script type="text/javascript" src="skin/gold/js/DD_belatedPNG.js"></script>
<script type="text/javascript">
DD_belatedPNG.fix('a,a:hover,div,span,img,li');
</script>
<![endif]-->
<script>
var score_str='积分:<INPUT name=vrvalue size=6 maxlength=4 value=$!vrvalue>';
function showScore(v){ 
if(v=="score"){
    if(document.getElementById('scoreSpan').innerHTML==null || document.getElementById('scoreSpan').innerHTML==''){
      document.getElementById('scoreSpan').innerHTML=score_str;
    }
  } 
  else  document.getElementById('scoreSpan').innerHTML="";
 }
function doSave()
{
if(doCheck())
{
if(EditForm.cid.value!="")EditForm.parameter.value="update";
EditForm.submit();
}
}
function doDel()
{
if(EditForm.cid.value!="")
{
if(confirm("删除后数据不能恢复，确认要删除吗？")){
EditForm.parameter.value="del";
EditForm.submit();
}
}
}
function doCheck()
{
if(EditForm.sn.value=="")
{
alert("栏目编码不能为空！");
EditForm.sn.focus();
return false;
}
if(EditForm.title.value=="")
{
alert("栏目标题不能为空！");
EditForm.title.focus();
return false;
}

return true;
}
function init()
{
EditForm.vrtype.value="$!vrtype";
}
</script>
</head>
<body>
<div id="container">
	<div id="asideback"></div>
	<div id="asideswitch"><div class="button"></div></div>
	#parse('/inc/left.htm')
	
	<div id="rightbody"><!-- 主体部分 -->
		<section id="wrapper">
			#parse('/inc/head.htm')
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="8" class="cn_12px">
  <tr>
    <td><strong><a href="/bbs/index.do">BBS栏目编辑</a><a href="/bbs/bbsList.do?th=xwsp"></a></strong><br>
    </td>
    <td><div align="right"></div></td>
  </tr>
</table>
<form name="EditForm" method="post" action="bbsdir.do">
 <input type="hidden" name="parameter" value="add">
 <input type="hidden" name="subCommand" value="">
 <input type="hidden" name="cid"   value="$!cid">
  <input type="hidden" name="parentsn"   value="$!parentsn">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E8E8E8">
  <tr bgcolor="#FFFFFF"> 
    <td width="80" height="29" align="center">栏目编码：</td>
    <td colspan="2"> <input name="sn" type="text" class="input3" id="ti" value="$!sn" size="10">
      * 
      <span class="text-red4">编码不操作16字符</span></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td width="80" height="29" align="center">栏目名称：</td>
    <td colspan="2"> <input name="title" type="text" class="input3" id="ti" value="$!title" size="40"> 
      <span class="text-red4">*(BBS栏目的中文名名称)不超过20字</span></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td align="center" valign="top"><br>
      栏目简介：</td>
    <td colspan="2"> <textarea name="intro" cols="3" id="intro" style="width:80%">$!intro</textarea>      <br>      </td>
  </tr>
   <tr bgcolor="#FFFFFF"> 
      <td height="29" align="center">栏目类型：</td>
    <td colspan="2"><select name="vrtype" onChange="showScore(this.value);">
	  <option value="">公开</option>
       <option value="user">会员可见</option>
       <option value="score">积分限制</option>
       <option value="reply">回复可见</option>
       </select>
	</select><span id="scoreSpan"></span></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
      <td height="29" align="center">版主：</td>
    <td colspan="2"><input name="manager" type="text" class="input3" id="Title" value="$!manager" size="10"> </td>
  </tr>
   <tr bgcolor="#FFFFFF"> 
      <td height="29" align="center">副管理员：</td>
      <td colspan="2"><input name="submanager" type="text" class="input3" id="Title" value="$!submanager" size="10"> </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
      <td height="29" align="center">显示顺序：</td>
      <td colspan="2"><input name="sequence" type="text" class="input3" id="Title" value="$!sequence" size="10"> </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height="30">&nbsp;</td>
    <td width="448"><input type="button" name="Submit" value="保存" onClick="doSave()">　
      <input type="reset" name="Submit2" value="删除" onClick="doDel()">
      　
      <input type="reset" name="Submit23" value="重置">　      
      <input type="reset" name="Submit22" value="返回" onClick="history.go(-1);">
      </td>
    <td width="237"> 
    
</td>
    </tr>
</table>
</form>
		</section>
	</div>
	
	#parse('/inc/foot.htm')
</div>
</body>
</html>
#if($msg)
<script>
alert('$!msg');
</script>
#end
